<template>
  <div class="my">
    <div class="top">
      <img src="../assets/zhouwei.png" alt="" />
      <span>chenfeng</span>
    </div>
    <div class="cneter">
      <van-tabbar
        route
        active-color="#FFA500"
        :fixed="false"
        :border="false"
        style="height: 80px; margin-top: 20px; margin-bottom: 15px"
      >
        <van-tabbar-item replace to="/home/views" icon="home-o"
          >历史记录</van-tabbar-item
        >
        <van-tabbar-item replace to="/home/collect" icon="search"
          >我的收藏</van-tabbar-item
        >
        <van-tabbar-item replace to="/home/up" icon="home-o"
          >我的点赞</van-tabbar-item
        >
      </van-tabbar>
      <div class="bottom">
        <HmNavs>推荐分享</HmNavs>
        <HmNavs>意见反馈</HmNavs>
        <HmNavs>关于我们</HmNavs>
        <HmNavs @right="exit">退出登录</HmNavs>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  methods: {
    exit() {
      this.$router.push("/logon");
      // 清除用户信息
      localStorage.removeItem("token");
    },
  },
};
</script>
<style lang="less" scoped>
.my {
  padding: 0 10px;
  background-color: gray;
}
.top {
  display: flex;
  align-items: center;

  height: 100px;
  img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
  }
  span {
    margin-left: 20px;
    font-size: 20px;
    color: #fff;
    font-weight: bold;

    line-height: 100px;
  }
}
</style>
